<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

$TCA['tx_chraetseltreff_print'] = array (
	'ctrl' => $TCA['tx_chraetseltreff_print']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,title,filename,suffix,evt_tag,evt_woche,taktung,replyname,replyemail, toname, toemail, alt_template, email'
	),
	'feInterface' => $TCA['tx_chraetseltreff_print']['feInterface'],
	'columns' => array (
            'hidden' => array (		
                    'exclude' => 1,
                    'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
                    'config'  => array (
                            'type'    => 'check',
                            'default' => '0'
                    )
            ),
            'title' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.title',		
                    'config' => array (
                            'type' => 'input',	
                            'size' => '30',
                    )
            ),
            'filename' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.filename',		
                    'config' => array (
                            'type' => 'input',	
                            'size' => '30',
                    )
            ),
            "suffix" => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.suffix',		
                    'config' => array (
                            'type' => 'input',	
                            'size' => '30',
                    )
            ),
            'replyemail' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.replyemail',		
                    'config' => array (
                            'type' => 'input',	
                            'size' => '30',
                    )
            ),
            'replyname' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.replyname',		
                    'config' => array (
                            'type' => 'input',	
                            'size' => '30',
                    )
            ),
            'toemail' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.toemail',		
                    'config' => array (
                            'type' => 'input',	
                            'size' => '30',
                    )
            ),
            'toname' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.toname',		
                    'config' => array (
                            'type' => 'input',	
                            'size' => '30',
                    )
            ),
            'emailsubject' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.emailsubject',		
                    'config' => array (
                            'type' => 'input',	
                            'size' => '30',
                    )
            ),
            'emailbody' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.emailbody',		
                    'config' => array (
                            'type' => 'text', 
                            'cols' => '30', 
                            'rows' => '5', 
                    )
            ),
            'evt_tag' => array (        
                'exclude' => 0,        
                'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_tag',        
                'config' => array (
                    'type' => 'select',
                    'items' => array (
                        array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_tag.I.0', '0'),
                         array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_tag.I.1', '1'),
                          array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_tag.I.2', '2'),
                           array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_tag.I.3', '3'),
                            array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_tag.I.4', '4'),
                             array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_tag.I.5', '5'),
                              array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_tag.I.6', '6'),
                    ),
                    'size' => 1,    
                    'maxitems' => 1,
                )
            ),            
            'evt_woche' => array (        
                'exclude' => 0,        
                'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_woche',        
                'config' => array (
                    'type' => 'select',
                    'items' => array (
                        array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_woche.I.0', '0'),
                        array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.evt_woche.I.1', '1'),
                    ),
                    'size' => 1,    
                    'maxitems' => 1,
                )
            ),
            'alt_template' => array (        
                'exclude' => 0,        
                'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.alt_template',        
                'config' => array (
                    'type' => 'select',
                    'items' => array (
                        array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.alt_template.I.0', '0'),
                        array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.alt_template.I.1', '1'),
                    ),
                    'size' => 1,    
                    'maxitems' => 1,
                )
            ),
            'taktung' => array (        
                'exclude' => 0,        
                'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.taktung',        
                'config' => array (
                    'type' => 'select',
                    'items' => array (
                        array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.taktung.I.0', '0'),
                        array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.taktung.I.1', '1'),
                        array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.taktung.I.2', '2'),
                    ),
                    'size' => 1,    
                    'maxitems' => 1,
                )
            ),
            'email' => array (		
                'exclude' => 0,		
                'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.email',		
                "config" => Array (			
                    'type' => 'select',
                    'size' => 10,
                    'autoSizeMax' => 25,
                    'selectedListStyle' => 'width:250px',
                    'minitems' => 0,
                    'maxitems' => 100,  
                    'foreign_table' => 'tx_chraetseltreff_redaktion',
                    'orderBy' => 'sorting ASC',
                ),
            ),
            'special' => array (		
                'exclude' => 0,		
                'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_print.special',		
                "config" => Array (			
                    'type' => 'select',
                    'size' => 10,
                    'autoSizeMax' => 25,
                    'selectedListStyle' => 'width:250px',
                    'minitems' => 0,
                    'maxitems' => 100,  
                    'foreign_table' => 'tx_chraetseltreff_special',
                    'orderBy' => 'sorting ASC',
                ),
            ),
	),
	'types' => array (
		'0' => array('showitem' => 'title;;;;2-2-2, filename, suffix, evt_tag, evt_woche, taktung,
                             replyname, replyemail, toname, toemail, emailsubject, emailbody, alt_template, email, special')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);

$TCA['tx_chraetseltreff_redaktion'] = array (
	'ctrl' => $TCA['tx_chraetseltreff_redaktion']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,emailreplyname,emailreplyemail,emailsubject,emailbody'
	),
	'feInterface' => $TCA['tx_chraetseltreff_redaktion']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'emailreplyname' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_redaktion.emailreplyname',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'emailreplyemail' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_redaktion.emailreplyemail',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'emailtoemail' => array (		
                    'exclude' => 0,		
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_redaktion.emailtoemail',		
                    'config' => array (
                    'type' => 'input',	
                    'size' => '30',
                    )
                ),
                'emailtoname' => array (		
                        'exclude' => 0,		
                        'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_redaktion.emailtoname',		
                        'config' => array (
                                'type' => 'input',	
                                'size' => '30',
                        )
                ),
                'emailsubject' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_redaktion.emailsubject',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'emailbody' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_redaktion.emailbody',		
			'config' => array (
                            'type' => 'text', 
                            'cols' => '30', 
                            'rows' => '5', 
			)
		),
        ),
	'types' => array (
		'0' => array('showitem' => 'emailreplyname;;;;2-2-2, emailreplyemail,emailtoname, emailtoemail, emailsubject,emailbody')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);
                
$TCA['tx_chraetseltreff_user'] = array (
	'ctrl' => $TCA['tx_chraetseltreff_user']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,anrede, vorname,name,strasse,hausnummer,plz,ort,email,telefon,hinweise'
	),
	'feInterface' => $TCA['tx_chraetseltreff_user']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
                'vorname' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.vorname',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'name' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.name',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'strasse' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.strasse',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'hausnummer' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.hausnummer',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'plz' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.plz',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'ort' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.ort',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'email' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.email',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'telefon' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.telefon',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'hinweise' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.hinweise',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'anrede' => array (        
                    'exclude' => 0,        
                    'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.anrede',        
                    'config' => array (
                        'type' => 'select',
                        'items' => array (
                            array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.anrede.I.0', '0'),
                            array('LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.anrede.I.1', '1'),
                        ),
                        'size' => 1,    
                        'maxitems' => 1,
                    )
                ),
                "agb" => Array (		
			"exclude" => 0,
			'label'   => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.agb',
			"config" => Array (
				"type" => "check",
				"default" => "0"
			)
		),
                "datenspeicherung" => Array (		
			"exclude" => 0,
			'label'   => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_user.datenspeicherung',
			"config" => Array (
				"type" => "check",
				"default" => "0"
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'anrede;;;;2-2-2, vorname, name, strasse, hausnummer, plz, ort, email, telefon, hinweise, agb, dateinspeicherung')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);

$TCA['tx_chraetseltreff_spiel'] = array (
	'ctrl' => $TCA['tx_chraetseltreff_spiel']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,loesungswort,user_id,print_id'
	),
	'feInterface' => $TCA['tx_chraetseltreff_spiel']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'loesungswort' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_spiel.loesungswort',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'user_id' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_spiel.user_id',		
			"config" => Array (			
				'type' => 'select',
				'form_type' => 'user',
				'size' => 10,
				'autoSizeMax' => 25,
				'minitems' => 0,
				'maxitems' => 100,  
				'foreign_table' => 'tx_chraetseltreff_user',
			)
		),
                'print_id' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_spiel.print_id',		
			"config" => Array (			
				'type' => 'select',
				'form_type' => 'user',
				'size' => 10,
				'autoSizeMax' => 25,
				'minitems' => 0,
				'maxitems' => 100,  
				'foreign_table' => 'tx_chraetseltreff_print',
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'loesungswort;;;;2-2-2, user_id, print_id')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);

$TCA['tx_chraetseltreff_special'] = array (
	'ctrl' => $TCA['tx_chraetseltreff_special']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,title,specialdate'
	),
	'feInterface' => $TCA['tx_chraetseltreff_redaktion']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'title' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_special.title',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
                'specialdate' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:ch_raetseltreff/locallang_db.xml:tx_chraetseltreff_special.specialdate',		
			'config' => array (
				'type' => 'input',	
				"size" => "8",
				"max" => "20",	
                                "eval" => "date"
			)
		),
        ),
	'types' => array (
		'0' => array('showitem' => 'title;;;;2-2-2, specialdate')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);
?>